/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Jiang Jinxi
 * Date: 2024-04-09
 * Time: 9:24
 */
public class Test4 {
    public static void game(boolean[] arr, int i){
        for (int j = i-1; j < arr.length; j+= i) {
            if(arr[j]){
                arr[j] = false;
            }else{
                arr[j] = true;
            }
        }
    }
    public static void main(String[] args) {
        boolean[] arr = new boolean[100];
        for (int i = 1; i < arr.length; i++) {
            game(arr,i);
        }
        for (int i = 1; i <= arr.length; i++) {
            System.out.print(arr[i-1] + " ");
            if(i % 10 == 0){
                System.out.println();
            }
        }
    }

}
